<?php
$tdatamodules=array();
	$tdatamodules[".NumberOfChars"]=80; 
	$tdatamodules[".ShortName"]="modules";
	$tdatamodules[".OwnerID"]="";
	$tdatamodules[".OriginalTable"]="modules";


	
//	field labels
$fieldLabelsmodules = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsmodules["English"]=array();
	$fieldToolTipsmodules["English"]=array();
	$fieldLabelsmodules["English"]["id"] = "Id";
	$fieldToolTipsmodules["English"]["id"] = "";
	$fieldLabelsmodules["English"]["module_name"] = "Module Name";
	$fieldToolTipsmodules["English"]["module_name"] = "";
	if (count($fieldToolTipsmodules["English"])){
		$tdatamodules[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsmodules["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsmodules["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsmodules["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsmodules["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsmodules["Chinese (Hong Kong S.A.R.)"]["module_name"] = "Module Name";
	$fieldToolTipsmodules["Chinese (Hong Kong S.A.R.)"]["module_name"] = "";
	if (count($fieldToolTipsmodules["Chinese (Hong Kong S.A.R.)"])){
		$tdatamodules[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsmodules["Chinese (Taiwan)"]=array();
	$fieldToolTipsmodules["Chinese (Taiwan)"]=array();
	$fieldLabelsmodules["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsmodules["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsmodules["Chinese (Taiwan)"]["module_name"] = "Module Name";
	$fieldToolTipsmodules["Chinese (Taiwan)"]["module_name"] = "";
	if (count($fieldToolTipsmodules["Chinese (Taiwan)"])){
		$tdatamodules[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsmodules["French"]=array();
	$fieldToolTipsmodules["French"]=array();
	$fieldLabelsmodules["French"]["id"] = "Id";
	$fieldToolTipsmodules["French"]["id"] = "";
	$fieldLabelsmodules["French"]["module_name"] = "Module Name";
	$fieldToolTipsmodules["French"]["module_name"] = "";
	if (count($fieldToolTipsmodules["French"])){
		$tdatamodules[".isUseToolTips"]=true;
	}
}


	
	$tdatamodules[".NCSearch"]=true;

	

$tdatamodules[".shortTableName"] = "modules";
$tdatamodules[".nSecOptions"] = 0;
$tdatamodules[".recsPerRowList"] = 1;	
$tdatamodules[".tableGroupBy"] = "0";
$tdatamodules[".mainTableOwnerID"] = "";
$tdatamodules[".moveNext"] = 1;




$tdatamodules[".showAddInPopup"] = false;

$tdatamodules[".showEditInPopup"] = false;

$tdatamodules[".showViewInPopup"] = false;


$tdatamodules[".fieldsForRegister"] = array();

$tdatamodules[".listAjax"] = true;

	$tdatamodules[".audit"] = false;

	$tdatamodules[".locking"] = false;
	
$tdatamodules[".listIcons"] = true;
$tdatamodules[".edit"] = true;
$tdatamodules[".inlineEdit"] = true;
$tdatamodules[".view"] = true;

$tdatamodules[".exportTo"] = true;

$tdatamodules[".printFriendly"] = true;

$tdatamodules[".delete"] = true;

$tdatamodules[".showSimpleSearchOptions"] = true;

$tdatamodules[".showSearchPanel"] = true;


$tdatamodules[".isUseAjaxSuggest"] = true;

$tdatamodules[".rowHighlite"] = true;


// button handlers file names

$tdatamodules[".addPageEvents"] = false;

$tdatamodules[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatamodules[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatamodules[".isUseTimeForSearch"] = false;

$tdatamodules[".isUseiBox"] = false;



$tdatamodules[".isUseInlineAdd"] = true;

$tdatamodules[".isUseInlineEdit"] = true;
$tdatamodules[".isUseInlineJs"] = $tdatamodules[".isUseInlineAdd"] || $tdatamodules[".isUseInlineEdit"];

$tdatamodules[".allSearchFields"] = array();

$tdatamodules[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatamodules[".allSearchFields"]))
{
	$tdatamodules[".allSearchFields"][] = "id";	
}
$tdatamodules[".globSearchFields"][] = "module_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("module_name", $tdatamodules[".allSearchFields"]))
{
	$tdatamodules[".allSearchFields"][] = "module_name";	
}


$tdatamodules[".googleLikeFields"][] = "id";
$tdatamodules[".googleLikeFields"][] = "module_name";



$tdatamodules[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatamodules[".allSearchFields"])) 
{
	$tdatamodules[".allSearchFields"][] = "id";	
}
$tdatamodules[".advSearchFields"][] = "module_name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("module_name", $tdatamodules[".allSearchFields"])) 
{
	$tdatamodules[".allSearchFields"][] = "module_name";	
}

$tdatamodules[".isTableType"] = "list";


	

$tdatamodules[".isDisplayLoading"] = true;

$tdatamodules[".isResizeColumns"] = false;





$tdatamodules[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatamodules[".strOrderBy"] = $gstrOrderBy;
	
$tdatamodules[".orderindexes"] = array();

$tdatamodules[".sqlHead"] = "SELECT id,   module_name";
$tdatamodules[".sqlFrom"] = "FROM modules";
$tdatamodules[".sqlWhereExpr"] = "";
$tdatamodules[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatamodules[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatamodules[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatamodules[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "modules";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatamodules["id"]=$fdata;
//	module_name
	$fdata = array();
	$fdata["strName"] = "module_name";
	$fdata["ownerTable"] = "modules";
		$fdata["Label"]="Module Name"; 
	
		
		
	$fdata["FieldType"]= 5;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "module_name";
	
		$fdata["FullName"]= "module_name";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatamodules["module_name"]=$fdata;

	
$tables_data["modules"]=&$tdatamodules;
$field_labels["modules"] = &$fieldLabelsmodules;
$fieldToolTips["modules"] = &$fieldToolTipsmodules;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["modules"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["modules"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto558=array();
$proto558["m_strHead"] = "SELECT";
$proto558["m_strFieldList"] = "id,   module_name";
$proto558["m_strFrom"] = "FROM modules";
$proto558["m_strWhere"] = "";
$proto558["m_strOrderBy"] = "";
$proto558["m_strTail"] = "";
$proto559=array();
$proto559["m_sql"] = "";
$proto559["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto559["m_column"]=$obj;
$proto559["m_contained"] = array();
$proto559["m_strCase"] = "";
$proto559["m_havingmode"] = "0";
$proto559["m_inBrackets"] = "0";
$proto559["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto559);

$proto558["m_where"] = $obj;
$proto561=array();
$proto561["m_sql"] = "";
$proto561["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto561["m_column"]=$obj;
$proto561["m_contained"] = array();
$proto561["m_strCase"] = "";
$proto561["m_havingmode"] = "0";
$proto561["m_inBrackets"] = "0";
$proto561["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto561);

$proto558["m_having"] = $obj;
$proto558["m_fieldlist"] = array();
						$proto563=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "modules"
));

$proto563["m_expr"]=$obj;
$proto563["m_alias"] = "";
$obj = new SQLFieldListItem($proto563);

$proto558["m_fieldlist"][]=$obj;
						$proto565=array();
			$obj = new SQLField(array(
	"m_strName" => "module_name",
	"m_strTable" => "modules"
));

$proto565["m_expr"]=$obj;
$proto565["m_alias"] = "";
$obj = new SQLFieldListItem($proto565);

$proto558["m_fieldlist"][]=$obj;
$proto558["m_fromlist"] = array();
												$proto567=array();
$proto567["m_link"] = "SQLL_MAIN";
			$proto568=array();
$proto568["m_strName"] = "modules";
$proto568["m_columns"] = array();
$proto568["m_columns"][] = "id";
$proto568["m_columns"][] = "module_name";
$obj = new SQLTable($proto568);

$proto567["m_table"] = $obj;
$proto567["m_alias"] = "";
$proto569=array();
$proto569["m_sql"] = "";
$proto569["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto569["m_column"]=$obj;
$proto569["m_contained"] = array();
$proto569["m_strCase"] = "";
$proto569["m_havingmode"] = "0";
$proto569["m_inBrackets"] = "0";
$proto569["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto569);

$proto567["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto567);

$proto558["m_fromlist"][]=$obj;
$proto558["m_groupby"] = array();
$proto558["m_orderby"] = array();
$obj = new SQLQuery($proto558);

$queryData_modules = $obj;
$tdatamodules[".sqlquery"] = $queryData_modules;

$tableEvents["modules"] = new eventsBase;

?>
